home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Start.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.6 KB  |  147 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Start.a
  3. ;
  4. ;    Contains:    Start Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1987-1993, 1996-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__START__') = 'UNDEFINED' THEN
  19. __START__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.  
  25.  
  26. DefStartRec                RECORD 0
  27. sdExtDevID                 ds.b    1                ; offset: $0 (0)
  28. sdPartition                 ds.b    1                ; offset: $1 (1)
  29. sdSlotNum                 ds.b    1                ; offset: $2 (2)
  30. sdSRsrcID                 ds.b    1                ; offset: $3 (3)
  31.                          ORG 0
  32. sdReserved1                 ds.b    1                ; offset: $0 (0)
  33. sdReserved2                 ds.b    1                ; offset: $1 (1)
  34. sdRefNum                 ds.w    1                ; offset: $2 (2)
  35. sizeof                     EQU *                    ; size:   $4 (4)
  36.                         ENDR
  37. ; typedef union DefStartRec *            DefStartPtr
  38.  
  39. DefVideoRec                RECORD 0
  40. sdSlot                     ds.b    1                ; offset: $0 (0)
  41. sdsResource                 ds.b    1                ; offset: $1 (1)
  42. sizeof                     EQU *                    ; size:   $2 (2)
  43.                         ENDR
  44. ; typedef struct DefVideoRec *            DefVideoPtr
  45.  
  46. DefOSRec                RECORD 0
  47. sdReserved                 ds.b    1                ; offset: $0 (0)
  48. sdOSType                 ds.b    1                ; offset: $1 (1)
  49. sizeof                     EQU *                    ; size:   $2 (2)
  50.                         ENDR
  51. ; typedef struct DefOSRec *                DefOSPtr
  52.  
  53. ;
  54. ; pascal void GetDefaultStartup(DefStartPtr paramBlock)
  55. ;
  56.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  57.         ; parameters:
  58.         ;    paramBlock      => A0
  59.         _GetDefaultStartup:    OPWORD    $A07D
  60.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  61.         IMPORT_CFM_FUNCTION GetDefaultStartup
  62.     ENDIF
  63.  
  64. ;
  65. ; pascal void SetDefaultStartup(DefStartPtr paramBlock)
  66. ;
  67.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  68.         ; parameters:
  69.         ;    paramBlock      => A0
  70.         _SetDefaultStartup:    OPWORD    $A07E
  71.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  72.         IMPORT_CFM_FUNCTION SetDefaultStartup
  73.     ENDIF
  74.  
  75. ;
  76. ; pascal void GetVideoDefault(DefVideoPtr paramBlock)
  77. ;
  78.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  79.         ; parameters:
  80.         ;    paramBlock      => A0
  81.         _GetVideoDefault:    OPWORD    $A080
  82.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  83.         IMPORT_CFM_FUNCTION GetVideoDefault
  84.     ENDIF
  85.  
  86. ;
  87. ; pascal void SetVideoDefault(DefVideoPtr paramBlock)
  88. ;
  89.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  90.         ; parameters:
  91.         ;    paramBlock      => A0
  92.         _SetVideoDefault:    OPWORD    $A081
  93.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  94.         IMPORT_CFM_FUNCTION SetVideoDefault
  95.     ENDIF
  96.  
  97. ;
  98. ; pascal void GetOSDefault(DefOSPtr paramBlock)
  99. ;
  100.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  101.         ; parameters:
  102.         ;    paramBlock      => A0
  103.         _GetOSDefault:    OPWORD    $A084
  104.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  105.         IMPORT_CFM_FUNCTION GetOSDefault
  106.     ENDIF
  107.  
  108. ;
  109. ; pascal void SetOSDefault(DefOSPtr paramBlock)
  110. ;
  111.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  112.         ; parameters:
  113.         ;    paramBlock      => A0
  114.         _SetOSDefault:    OPWORD    $A083
  115.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  116.         IMPORT_CFM_FUNCTION SetOSDefault
  117.     ENDIF
  118.  
  119. ;
  120. ; pascal void SetTimeout(short count)
  121. ;
  122.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  123.         Macro
  124.         _SetTimeout
  125.             move.w              #$0001,A0
  126.             dc.w                $A07F
  127.         EndM
  128.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  129.         IMPORT_CFM_FUNCTION SetTimeout
  130.     ENDIF
  131.  
  132. ;
  133. ; pascal void GetTimeout(short *count)
  134. ;
  135.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  136.         Macro
  137.         _GetTimeout
  138.             sub.l               A0,A0
  139.             dc.w                $A07F
  140.         EndM
  141.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  142.         IMPORT_CFM_FUNCTION GetTimeout
  143.     ENDIF
  144.  
  145.     ENDIF ; __START__ 
  146.  
  147.